/*
 * @description: 
 * @Author: Islands
 * @Date: 2023-05-31 14:36:11
 * @LastEditTime: 2024-03-25 22:05:16
 */
//全局配置store
import type { App } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const store = createPinia()
store.use(piniaPluginPersistedstate)
// 全局注册 store
export function setupStore(app: App<Element>) {
    app.use(store);
}
//  提取公共store
export * from "./authorization/index";
export * from "./local/tab-views/index";
export * from './local/index.ts';
export { store };




